	.text

main:
begin_func_main:
begin_block_0:
	addi $sp, $sp, -4 	# int a
	li $t0, 0
	sw $t0, 0($sp)
for_cond_0:
begin_block_for_cond_0:
	lw $t0, 0($sp)
	li $t1, 10
	slt $t0, $t0, $t1
	move $s0, $t0
	addi $sp, $sp, 0
end_block_for_cond_0:
	bne $s0, $zero, for_body_0
	beq $s0, $zero, for_end_0
for_inc_0:
begin_block_for_inc_0:
	lw $t0, 0($sp)
	li $t1, 2
	add $t0, $t0, $t1
	sw $t0, 0($sp)
	addi $sp, $sp, 0
end_block_for_inc_0:
	b for_cond_0
for_body_0:
begin_block_1:
	lw $t0, 0($sp)
	move $a0, $t0
	li $v0, 1
	syscall 	# print_int
	.data
str0: .asciiz " "
	.text
la $t0, str0
	move $a0, $t0
	li $v0, 4
	syscall 	# print_string
	addi $sp, $sp, 0
end_block_1:
	b for_inc_0
for_end_0:
	.data
str1: .asciiz "\n"
	.text
la $t0, str1
	move $a0, $t0
	li $v0, 4
	syscall 	# print_string
for_cond_1:
begin_block_for_cond_1:
	lw $t0, 0($sp)
	li $t1, 20
	slt $t0, $t0, $t1
	move $s0, $t0
	addi $sp, $sp, 0
end_block_for_cond_1:
	bne $s0, $zero, for_body_1
	beq $s0, $zero, for_end_1
for_inc_1:
begin_block_for_inc_1:
	lw $t0, 0($sp)
	li $t1, 2
	add $t0, $t0, $t1
	sw $t0, 0($sp)
	addi $sp, $sp, 0
end_block_for_inc_1:
	b for_cond_1
for_body_1:
begin_block_2:
	lw $t0, 0($sp)
	move $a0, $t0
	li $v0, 1
	syscall 	# print_int
	.data
str2: .asciiz " "
	.text
la $t0, str2
	move $a0, $t0
	li $v0, 4
	syscall 	# print_string
	addi $sp, $sp, 0
end_block_2:
	b for_inc_1
for_end_1:
	.data
str3: .asciiz "\n"
	.text
la $t0, str3
	move $a0, $t0
	li $v0, 4
	syscall 	# print_string
for_cond_2:
begin_block_for_cond_2:
	lw $t0, 0($sp)
	li $t1, 30
	slt $t0, $t0, $t1
	move $s0, $t0
	addi $sp, $sp, 0
end_block_for_cond_2:
	bne $s0, $zero, for_body_2
	beq $s0, $zero, for_end_2
for_inc_2:
begin_block_for_inc_2:
	addi $sp, $sp, 0
end_block_for_inc_2:
	b for_cond_2
for_body_2:
begin_block_3:
	lw $t0, 0($sp)
	li $t1, 2
	add $t0, $t0, $t1
	sw $t0, 0($sp)
	move $a0, $t0
	li $v0, 1
	syscall 	# print_int
	.data
str4: .asciiz " "
	.text
la $t0, str4
	move $a0, $t0
	li $v0, 4
	syscall 	# print_string
	addi $sp, $sp, 0
end_block_3:
	b for_inc_2
for_end_2:
	addi $sp, $sp, 4
end_block_0:
end_func_main:
	jr $ra

